package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.TrainingSectionDao;
import com.suke.czx.modules.examstack.exam.entity.TrainingSectionEntity;
import com.suke.czx.modules.examstack.exam.service.TrainingSectionService;



@Service("trainingSectionService")
public class TrainingSectionServiceImpl implements TrainingSectionService {
	@Autowired
	private TrainingSectionDao trainingSectionDao;
	
	@Override
	public TrainingSectionEntity queryObject(Integer sectionId){
		return trainingSectionDao.queryObject(sectionId);
	}
	
	@Override
	public List<TrainingSectionEntity> queryList(Map<String, Object> map){
		return trainingSectionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return trainingSectionDao.queryTotal(map);
	}
	
	@Override
	public void save(TrainingSectionEntity trainingSection){
		trainingSectionDao.save(trainingSection);
	}
	
	@Override
	public void update(TrainingSectionEntity trainingSection){
		trainingSectionDao.update(trainingSection);
	}
	
	@Override
	public void delete(Integer sectionId){
		trainingSectionDao.delete(sectionId);
	}
	
	@Override
	public void deleteBatch(Integer[] sectionIds){
		trainingSectionDao.deleteBatch(sectionIds);
	}
	
}
